]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Unmanage the screen before reexecing
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 17 Oct 2011 19:19:46 +0000 (15:19 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 18 Oct 2011 01:55:13 +0000 (21:55 -0400)
This ensures a 'clean shutdown' of mutter.

https://bugzilla.gnome.org/show_bug.cgi?id=660848

src/shell-global.c

index bf7b5a794ebdd407bbe7e0dbc6a81abf0f702ba0..6aafcdbdf420036e8becd11dab426087d725e257 100644 (file)
@@ -1122,6 +1122,10 @@ shell_global_reexec_self (ShellGlobal *global)
    */
   pre_exec_close_fds ();
 
+  meta_display_unmanage_screen (shell_global_get_display (global),
+                                shell_global_get_screen (global),
+                                shell_global_get_current_time (global));
+
   execvp (arr->pdata[0], (char**)arr->pdata);
   g_warning ("failed to reexec: %s", g_strerror (errno));
   g_ptr_array_free (arr, TRUE);